import fetch from '@/utils/request'

export function page(obj) {
  return fetch({
    url: '/api/adminCrm/personalBase/queryList',
    method: 'post',
    data: obj
  })
}
export function addOrUpdate(obj) {
  return fetch({
    url: '/api/admin/baseUserTableField/addOrUpdate',
    method: 'post',
    data: obj
  })
}
export function queryObj(obj) {
  return fetch({
    url: '/api/admin/baseUserTableField/queryObj',
    method: 'post',
    data: obj
  })
}
export function getObj(id) {
  return fetch({
    url: '/api/adminCrm/personalBase/queryOne/' + id,
    method: 'get'
  })
}

export function addObj(obj) {
  return fetch({
    url: '/api/adminCrm/personalBase/add',
    method: 'post',
    data: obj
  })
}

export function putObj(obj) {
  return fetch({
    url: '/api/adminCrm/personalBase/updateObj',
    method: 'put',
    data: obj
  })
}

export function delObj(id) {
  return fetch({
    url: '/api/adminCrm/personalBase/deleteObj/' + id,
    method: 'delete'
  })
}

export function platformPageList(query) {
  return fetch({
    url: '/api/adminCrm/platformBase/pageList',
    method: 'post',
    data: query
  })
}
